/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sellcar;

import java.sql.*;

/**
 *
 * @author Fabio Valenzuela
 */
public class Conexao_Banco {

    private Connection connection;

    public Conexao_Banco() throws ClassNotFoundException, SQLException {
       Class.forName("com.mysql.jdbc.Driver");
        connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sellcar", "root", "admin");
        System.out.println("Conectado com sucesso");
            }

    public static void main(String[] args) {
        try {
            new Conexao_Banco();
        } catch (Exception e) {
            System.out.println("Não Conectado");
        }
    }
}
